<?php 
session_start() ;

/* add by kergrit(redthird.com) for compatible global variable off/on php.ini */


	$users_user 	= $_POST['users_user'];  	
	$users_name 	= $_POST['users_name'];
	$users_pass 	= $_POST['users_pass1'];
	$users_position 	= $_POST['users_position'];
	$users_address 	= $_POST['users_address'];
	$users_tel 			= $_POST['users_tel'];
	$users_email 		= $_POST['users_email'];
	$users_city 			= $_POST['users_city'];
	$users_photo 		= $_POST['users_photo'];
	$users_amper 			= $_POST['users_amper'];
	$users_zipcode 		= $_POST['users_zipcode'];
	$users_date 			= $_POST['date'];
	$users_month		 	= $_POST['month'];
	$users_year				= $_POST['year'];
	$Submit 					= $_POST['Submit'];
	$ok						 = $_POST['ok'];

?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>:: กรอกข้อมูลพนักงาน ::</title>
</head>


<body>

<?
include "../configdb.php";


$sql="insert into users(users_user,users_name,users_pass,users_position,users_address,users_tel,users_email,users_city,users_photo,users_online_date,users_amper,users_zipcode,users_date,users_month,users_year,member_id)                values('$users_user','$users_name','$users_pass','$users_position','$users_address','$users_tel','$users_email','$users_city','$users_photo', '$users_online_date','$users_amper','$users_zipcode', '$users_date','$users_month', '$users_year', '$member_id') ";
$query=mysql_db_query($dbname,$sql);
if($query)
{?>
<script>
alert("เพิ่มเรียบร้อยแล้ว");
</script>
<?
print "<meta http-equiv='refresh' content='1;url=admin.php'>" ;
}
else{
?>
<script>
alert("เพิ่มไม่ได้");
</script>

<?
print "<meta http-equiv='refresh' content='1;url=admin.php'>" ;
}



?>
<body>





</body>

</html>

